<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>
    <title>名人堂申请</title>
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../css/style.css">
</head>

<body class="hold-transition skin-purple sidebar-mini">

<div class="wrapper">

    <!-- 页面头部 -->
    <jsp:include page="header.jsp"></jsp:include>
    <!-- 页面头部 /-->

    <!-- 导航侧栏 -->
    <jsp:include page="aside.jsp"></jsp:include>
    <!-- 导航侧栏 /-->
    <!-- 内容区域 -->
    <div class="content-wrapper">

        <!-- 正文区域 -->
        <section class="content">
            <div class="box box-success">
                <div class="box-header with-border">
                    <i class="fa fa-book"></i>
                    <h3 class="box-title">待处理申请</h3>
                </div>
                <div class="box-body">
                    <div class="table-box">

                        <!--数据列表-->
                        <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
                            <thead>
                            <tr>
                                <th class="">申请材料</th>
                                <th class="">同意</th>
                                <th class="text-center">拒绝</th>
                            </tr>
                            </thead>
                            <tbody>

                            <c:forEach items="${hofs}" var="h">
                            <tr>
                                <td>${h.experience}</td>
                                <td class="text-center">
                                    <a href="${pageContext.request.contextPath}/AdminServlet?method=handlerHof&result=1&hid=${h.hid}&sid=${h.sid}" class="btn bg-olive btn-xs" >同意</a>
                                </td>
                                <td class="text-center">
                                    <a href="${pageContext.request.contextPath}/AdminServlet?method=handlerHof&result=0&hid=${h.hid}&sid=${h.sid}" class="btn bg-olive btn-xs" >不同意</a>
                                </td>
                            </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </section>
    </div>
   <jsp:include page="footer.jsp"></jsp:include>

</div>

<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="../plugins/jQueryUI/jquery-ui.min.js"></script>
<script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../plugins/adminLTE/js/app.min.js"></script>
<script>
    $(document).ready(function() {
        // 选择框
        $(".select2").select2();
    });

    // 设置激活菜单
    function setSidebarActive(tagUri) {
        var liObj = $("#" + tagUri);
        if (liObj.length > 0) {
            liObj.parent().parent().addClass("active");
            liObj.addClass("active");
        }
    }
    $(document).ready(function() {
        // 激活导航位置
        setSidebarActive("admin-index");
    });
</script>
</body>
</html>
